/**
 * @description 定义采购接口
 */

import { PURCHASE_SUPPLIER_APPROVE, PURCHASE_SUPPLIER_INFO, PURCHASE_SUPPLIER_LIST } from "@/config/urls.conf";
import ajax from "./ajax";

// 获取供应商列表接口
export function supplierListApi(params){
    return ajax({
        url: PURCHASE_SUPPLIER_LIST,
        params
    })
}

//获取供应商详细信息
export function supplierInfoApi(id){
    return ajax({
        url: PURCHASE_SUPPLIER_INFO+id
    })
}

export function supplierApprove(data){
    return ajax({
        url:PURCHASE_SUPPLIER_APPROVE,
        method: 'POST',
        data
    })
}